package request

// PageInfo Paging common input parameter structure
type PageInfo struct {
	Page           int    `json:"page" form:"page"`           // 页码
	PageSize       int    `json:"page_size" form:"page_size"` // 每页大小
	Keyword        string `json:"keyword" form:"keyword"`     //关键字
	StartCreatedAt int64  `json:"start_created_at" form:"start_created_at"`
	EndCreatedAt   int64  `json:"end_created_at" form:"end_created_at"`
}

// GetById Find by id structure
type GetById struct {
	ID int `json:"id" form:"id"` // 主键ID
}

func (r *GetById) Uint() uint {
	return uint(r.ID)
}

type IdsReq struct {
	Ids []int `json:"ids" form:"ids"`
}

type Empty struct{}
